package com.example.demo.NiuKe.v03;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

public class Tesr {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        Set<Integer> set = new TreeSet<>();
        while((str=br.readLine())!=null){
            System.out.println("str="+str);
            String [] s=str.split(" ");
            System.out.println(s.length);
            for (int i =0;i<s.length;i++){
                set.add(Integer.valueOf(s[i]));
            }
        Iterator<Integer> iterator = set.iterator();
            while (iterator.hasNext()){
                System.out.println(iterator.next());
            }
        }

        }
    }

